import request from '@/utils/request';

const dfTaskApi = {};

dfTaskApi.listByProjectId = (projectId) => {
	return request({
		url: '/platform-api/df-task/list/' + projectId,
		method: 'get',
	})
}
dfTaskApi.page = (params) => {
	return request({
		url: '/platform-api/df-task/page',
		method: 'get',
		params: params,
	})
}
dfTaskApi.add = (params) => {
	return request({
		url: '/platform-api/df-task',
		method: 'post',
		data: params,
	})
}
dfTaskApi.update = (params) => {
	return request({
		url: '/platform-api/df-task',
		method: 'put',
		data: params,
	})
}
dfTaskApi.get = (id) => {
	return request({
		url: '/platform-api/df-task/' + id,
		method: 'get',
	})
}
dfTaskApi.delete = (id) => {
	return request({
		url: '/platform-api/df-task/' + id,
		method: 'delete',
	})
}


export default dfTaskApi